package cn.dancepeak.user.mapper;

import cn.dancepeak.user.domain.User;
import cn.dancepeak.user.query.UserQuery;

import java.util.List;

public interface UserMapper {
    void insert(User user);

    void updateById(User user);

    void deleteById(Long id);

    void deleteByList(List<Long> ids);

    User selectById(Long id);

    List<User> list(UserQuery userQuery);

    User selectByUsername(String userName);
}
